#include "StdAfx.h"
#include <MyViews/BasicView.h>

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

BEGIN_MESSAGE_MAP(BasicView, CView)
	//{{AFX_MSG_MAP(BasicView)
	ON_WM_CREATE()
	ON_WM_DESTROY()
	ON_WM_PAINT()
	ON_WM_ERASEBKGND()
	ON_WM_SIZE()
	ON_WM_KEYDOWN()
	ON_WM_KEYUP()
	ON_WM_SYSKEYDOWN()
	ON_WM_SYSKEYUP()
	ON_WM_LBUTTONDOWN()
	ON_WM_LBUTTONUP()
	ON_WM_LBUTTONDBLCLK()
	ON_WM_RBUTTONDOWN()
	ON_WM_RBUTTONUP()
	ON_WM_RBUTTONDBLCLK()
	ON_WM_MOUSEMOVE()
	ON_WM_SETCURSOR()
	ON_WM_SETFOCUS()
	ON_WM_KILLFOCUS()
	ON_WM_HSCROLL()
	ON_WM_VSCROLL()
	//}}AFX_MSG_MAP
	ON_MESSAGE(WM_MOUSELEAVE, OnMouseLeave)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// BasicView message handlers

int BasicView::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	return HandleCreate(lpCreateStruct);
}

void BasicView::OnDestroy() 
{
	HandleDestroy();
}

void BasicView::OnPaint() 
{
	HandlePaint();
}

BOOL BasicView::OnEraseBkgnd(CDC* pDC) 
{
	return HandleEraseBkgnd(pDC);
}

void BasicView::OnSize(UINT nType, int cx, int cy) 
{
	HandleSize(nType, cx, cy);
}

void BasicView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	HandleKeyDown(nChar, nRepCnt, nFlags);
}

void BasicView::OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	HandleKeyUp(nChar, nRepCnt, nFlags);
}

void BasicView::OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	HandleSysKeyDown(nChar, nRepCnt, nFlags);
}

void BasicView::OnSysKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	HandleSysKeyUp(nChar, nRepCnt, nFlags);
}

void BasicView::OnLButtonDown(UINT nFlags, CPoint point) 
{
	HandleLButtonDown(nFlags, point);
}

void BasicView::OnLButtonUp(UINT nFlags, CPoint point) 
{
	HandleLButtonUp(nFlags, point);
}

void BasicView::OnLButtonDblClk(UINT nFlags, CPoint point) 
{
	HandleLButtonDblClk(nFlags, point);
}

void BasicView::OnRButtonDown(UINT nFlags, CPoint point) 
{
	HandleRButtonDown(nFlags, point);
}

void BasicView::OnRButtonUp(UINT nFlags, CPoint point) 
{
	HandleRButtonUp(nFlags, point);
}

void BasicView::OnRButtonDblClk(UINT nFlags, CPoint point) 
{
	HandleRButtonDblClk(nFlags, point);
}

void BasicView::OnMouseMove(UINT nFlags, CPoint point) 
{
	HandleMouseMove(nFlags, point);
}

LRESULT BasicView::OnMouseLeave(WPARAM wParam, LPARAM lParam)
{
	HandleMouseLeave();
	return LRESULT(TRUE);
}

BOOL BasicView::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) 
{
	return HandleSetCursor(pWnd, nHitTest, message);
}

void BasicView::OnSetFocus(CWnd* pOldWnd) 
{
	HandleSetFocus(pOldWnd);
}

void BasicView::OnKillFocus(CWnd* pNewWnd) 
{
	HandleKillFocus(pNewWnd);
}

void BasicView::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
{
	HandleHScroll(nSBCode, nPos, pScrollBar);
}

void BasicView::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
{
	HandleVScroll(nSBCode, nPos, pScrollBar);
}


/////////////////////////////////////////////////////

int BasicView::HandleCreate(LPCREATESTRUCT lpCreateStruct)
{
	return CView::OnCreate(lpCreateStruct);
}

void BasicView::HandleDestroy()
{
	CView::OnDestroy();
}

void BasicView::HandlePaint()
{
	CView::OnPaint();
}

BOOL BasicView::HandleEraseBkgnd(CDC* pDC)
{
	return CView::OnEraseBkgnd(pDC);
}

void BasicView::HandleSize(UINT nType, int cx, int cy)
{
	CView::OnSize(nType, cx, cy);
}

void BasicView::HandleKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
	CView::OnKeyDown(nChar, nRepCnt, nFlags);
}

void BasicView::HandleKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags)
{
	CView::OnKeyUp(nChar, nRepCnt, nFlags);
}

void BasicView::HandleSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
	CView::OnSysKeyDown(nChar, nRepCnt, nFlags);
}

void BasicView::HandleSysKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags)
{
	CView::OnSysKeyUp(nChar, nRepCnt, nFlags);
}

void BasicView::HandleLButtonDown(UINT nFlags, CPoint point)
{
	CView::OnLButtonDown(nFlags, point);
}

void BasicView::HandleLButtonUp(UINT nFlags, CPoint point)
{
	CView::OnLButtonUp(nFlags, point);
}

void BasicView::HandleLButtonDblClk(UINT nFlags, CPoint point)
{
	CView::OnLButtonDblClk(nFlags, point);
}

void BasicView::HandleRButtonDown(UINT nFlags, CPoint point)
{
	CView::OnRButtonDown(nFlags, point);
}

void BasicView::HandleRButtonUp(UINT nFlags, CPoint point)
{
	CView::OnRButtonUp(nFlags, point);
}

void BasicView::HandleRButtonDblClk(UINT nFlags, CPoint point)
{
	CView::OnRButtonDblClk(nFlags, point);
}

void BasicView::HandleMouseMove(UINT nFlags, CPoint point)
{
	CView::OnMouseMove(nFlags, point);
}

void BasicView::HandleMouseLeave()
{
//
}

BOOL BasicView::HandleSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
	return CView::OnSetCursor(pWnd, nHitTest, message);
}

void BasicView::HandleSetFocus(CWnd* pOldWnd)
{
	CView::OnSetFocus(pOldWnd);
}

void BasicView::HandleKillFocus(CWnd* pNewWnd)
{
	CView::OnKillFocus(pNewWnd);
}

void BasicView::HandleHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
	CView::OnHScroll(nSBCode, nPos, pScrollBar);
}

void BasicView::HandleVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
	CView::OnVScroll(nSBCode, nPos, pScrollBar);
}

